
<!DOCTYPE html>
<html lang="zh" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title></title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="/public/css/bootstrap.min.css" rel="stylesheet"/>
	<link href="/public/css/layui.css" rel="stylesheet" >
	<link href="/public/css/font-awesome.css" rel="stylesheet"/>
	<!-- bootstrap-table 表格插件样式 -->
	<link href="/public/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
	<link href="/public/js/jqTreeGrid/jquery.treegrid.css" rel="stylesheet"/>
	<link href="/public/css/animate.css" rel="stylesheet"/>
	<link href="/public/css/style.css" rel="stylesheet"/>
	<link href="/public/css/checkbox.css" rel="stylesheet"/>
	<link href="/public/js/select/select2.css" rel="stylesheet"/>
	<link href="/public/app/css/app-ui.css" rel="stylesheet"/>
</head>
<body class="gray-bg">

	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-info">
				<form id="logininfor-form">
					<div class="select-list gd">
						<ul>
							<li>
								<label>登录地址：</label><input type="text" name="ipaddr"/>
							</li>
							<li>
								<label>登录名称：</label><input type="text" name="loginName"/>
							</li>
							<li>
								<label>登录状态：</label><select name="status">
									<option value="">所有</option>
									<option value="0">成功</option>
									<option value="1">失败</option>
								</select>
							</li>
							<li class="time">
								<label>登录时间： </label>
								<input type="text" class="layui-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
								<span>-</span>
								<input type="text" class="layui-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search($('form').attr('id'))"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel($('form').attr('id'))"><i class="fa fa-download"></i>&nbsp;下载</a>
								<a class="btn btn-outline btn-danger btn-rounded  btn-sm" onclick="$.operate.batRemove()">
			            			<i class="fa fa-trash-o"></i> 删除
			        			</a>
		        			</li>
						</ul>
					</div>
				</form>
			</div>
			
			 
        
	        <div class="col-sm-12 select-info table-striped">
			    <table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
	
	<div>
    <script src="/public/js/jquery/jquery.min.js"></script>
    <script src="/public/js/bootstrap/bootstrap.min.js"></script>
    
    <!-- bootstrap-table 表格插件 -->
    <script src="/public/js/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="/public/js/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/public/js/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
    <script src="/public/js/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
    <!-- jquery-validate 表单验证插件 -->
    <script src="/public/js/validate/jquery.validate.min.js"></script>
    <script src="/public/js/validate/messages_zh.min.js"></script>
    <script src="/public/js/validate/jquery.validate.extend.js"></script>
    <!-- jquery-validate 表单树插件 -->
    <script src="/public/js/jqTreeGrid/jquery.treegrid.min.js"></script>
    <script src="/public/js/jqTreeGrid/jquery.treegrid.extension.js"></script>
    <!-- jquery-export 表格导出插件 -->
    <script src="/public/js/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
    <script src="/public/js/bootstrap-table/extensions/export/tableExport.js"></script>
    <!-- 遮罩层 -->
    <script src="/public/js/blockUI/jquery.blockUI.js"></script>
    <script src="/public/js/layer/layer.min.js"></script>
    <script src="/public/js/layui/layui.js"></script>
    <script src="/public/app/js/common.js?v=2.2.0"></script>
    <script src="/public/app/js/app-ui.js?v=2.2.0"></script>
    <script src="http://tajs.qq.com/stats?sId=62048022"></script>
	<script> var ctx = "\/"; </script>
</div>
	<script>
	    var datas = [{"searchValue":null,"createBy":"admin","createTime":"2018-03-16 03:33:00","updateBy":null,"updateTime":null,"remark":"\u6B63\u5E38\u72B6\u6001","params":null,"dictCode":24,"dictSort":1,"dictLabel":"\u6210\u529F","dictValue":"0","dictType":"sys_common_status","cssClass":"","listClass":"primary","isDefault":"N","status":"0"},{"searchValue":null,"createBy":"admin","createTime":"2018-03-16 03:33:00","updateBy":null,"updateTime":null,"remark":"\u505C\u7528\u72B6\u6001","params":null,"dictCode":25,"dictSort":2,"dictLabel":"\u5931\u8D25","dictValue":"1","dictType":"sys_common_status","cssClass":"","listClass":"danger","isDefault":"N","status":"0"}];
		var prefix = ctx + "rest/system/log"
	
		$(function() {
		    var options = {
		        url: prefix + "/loginlist",
		        removeUrl: prefix + "/remove",
		        exportUrl: prefix + "/export",
		        sortName: "loginTime",
		        sortOrder: "desc",
		        search: false,
		        showExport: false,
		        columns: [{
		            checkbox: true
		        },
		        {
		            field: 'infoId',
		            title: '访问编号'
		        },
		        {
		            field: 'loginName',
		            title: '登录名称',
		            sortable: true
		        },
		        {
		            field: 'ipaddr',
		            title: '登录地址'
		        },
		        {
		            field: 'loginLocation',
		            title: '登录地点'
		        },
		        {
		            field: 'browser',
		            title: '浏览器'
		        },
		        {
		            field: 'os',
		            title: '操作系统'
		        },
		        {
		            field: 'status',
		            title: '登录状态',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	return $.table.selectDictLabel(datas, value);
		            }
		        },
		        {
		            field: 'msg',
		            title: '操作信息'
		        },
		        {
		            field: 'loginTime',
		            title: '登录时间',
		            sortable: true
		        }]
		    };
		    $.table.init(options);
		});
	</script>
</body>
</html>